/*
 * @Author: wuyang
 * @Description: 
 * @Date: 2022-12-29 14:36:24
 * @LastEditors: wuyang
 * @LastEditTime: 2023-01-06 13:44:52
 * @FilePath: \vue-ts-vite\src\store\index.ts
 */
/*
 * @Author: wuyang
 * @Description:
 * @Date: 2022-12-29 14:36:24
 * @LastEditors: wuyang
 * @LastEditTime: 2023-01-05 14:59:37
 * @FilePath: \vue-ts-vite\src\store\index.ts
 */
import { createPinia } from 'pinia'
// import piniaPersist from 'pinia-plugin-persist'
import type { App } from 'vue'

const store = createPinia()
// store.use(piniaPersist)

export const setupStore = (app: App<Element>) => {
  app.use(store)
}
export { store }
